package com.ssy.lingxi.contract.model.vo.sign.request;

import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.validation.constraints.DecimalMax;
import javax.validation.constraints.DecimalMin;
import javax.validation.constraints.NotNull;
import java.io.Serializable;
import java.math.BigDecimal;

@Data
public class PaymentVerifyAmountRequest implements Serializable {

    private static final long serialVersionUID = 1650288146988531388L;

    @NotNull(message = "电子签章认证记录id不能为空")
    @ApiModelProperty(value = "电子签章认证记录id")
    private Long signatureAuthLogId;

    @DecimalMin(value = "0", message = "金额,范围应是{value}以上")
    @DecimalMax(value = "1", message = "金额,范围应是{value}以下")
    @ApiModelProperty(value = "对公账号收到的随机金额数值[0.01-0.99]之间")
    private BigDecimal amount;

}
